import { customAlphabet } from 'nanoid'

export function componentId(num) {
  const nanoid = customAlphabet('1234567890abcdefghijklmnopqrstuvwsyz', num)
  return nanoid()
}
